package s08;

/**
 * @ClassName Demo09
 * @Description TODO
 * @Author Li
 * @Date 2022/8/14 18:25
 * @ModifyDate 2022/8/14 18:25
 * @Version 1.0
 */
public class Demo09 {
    public static int[] getArray(int length, ArrayBuilder ab) {
        return ab.buildArray(length);
    }

    public static void main(String[] args) {
        int[] arr = getArray(3, length -> new int[length]);
        System.out.println(arr.length);
    }
}
